package com.pingao.mp.modular.sys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.pingao.mp.modular.sys.entity.User;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 闻品高
 * @since 2018-09-26
 */
public interface UserMapper extends BaseMapper<User> {

    User selectByIdJoin(@Param("id") Serializable serializable);

    IPage<User> selectPageJoin(IPage<User> page, @Param(Constants.WRAPPER) Wrapper<User> queryWrapper);

    List<User> selectListJoin(@Param(Constants.WRAPPER) Wrapper<User> queryWrapper);

    User selectOneJoin(@Param(Constants.WRAPPER) Wrapper<User> queryWrapper);

    List<User> getTest(@Param("name") String name);
}
